import request from '@/utils/request'
// 查询部门下拉树结构
export function deptTreeSelect() {
	return request({
		url: '/mobile/show/deptTree',
		method: 'get'
	})
}

// 查询全部部门下拉树结构
export function allDeptTreeSelect() {
	return request({
		url: '/mobile/show/allDeptTree',
		method: 'get'
	})
}

// 查询全部部门下拉树结构-权限
export function powerDeptTreeSelect() {
	return request({
		url: '/mobile/show/powerDeptTree',
		method: 'get'
	})
}

//查询省区信息
export function baseRegionSelect(regionLevel) {
	return request({
		url: '/mobile/show/selectBaseRegionList/' + regionLevel,
		method: 'get'

	})
}

//查询区域信息
export function baseRegionList(parentCode) {
	return request({
		url: '/mobile/show/baseRegionList/' + parentCode,
		method: 'get'
	})
}

// 查询用户输入列表
export function inputUserList(query) {
	return request({
		url: '/mobile/show/userInput',
		method: 'get',
		params: query
	})
}

//查询所属渠道输入框
export function selectChannelList() {
	return request({
		url: '/mobile/show/channelInput',
		method: 'get',
	})
}

// 查询仓库列表信息
export function getWarehouseByDeptSelect(deptId) {
	return request({
		url: '/mobile/show/selectWarehouseByDeptList/' + deptId,
		method: 'get'
	})
}

//查询全部类别下拉树结构
export function materialCategoryTreeSelect(query) {
	return request({
		url: '/mobile/show/materialCategoryTree',
		method: 'get',
		params: query
	})
}

// 查询计量单位信息
export function getUnitSelect() {
	return request({
		url: '/mobile/show/selectUnitList',
		method: 'get'
	})
}

//查询物料大类
export function bigMaterialInput(){
  return request({
    url:'/mobile/show/bigMaterialInput',
    method:'get',
  })
}